Implement a reusable, dependency-free Node.js bounded task pool in src/task-pool.js.
This is a new generated utility, not an OpenCode source change.

Export async function mapPool(items, worker, options). Return a promise for an array of results in input order. Worker calls start in ascending input index, up to options.concurrency at once. A slot is refilled when its worker settles successfully. Call worker(value, index, signal), allowing both plain values and promises. Do not mutate the input array. Array holes are visited as undefined. No external dependencies, filesystem access, network, timers, or subprocesses are needed.

Validation returns rejected promises before any worker starts:
- items must be an Array; worker must be a function; options must be a non-null non-array object. Invalid values reject with TypeError.
- options.concurrency is required and must be a positive safe integer; otherwise reject with RangeError.
- optional options.signal must be an actual AbortSignal if supplied (undefined is allowed); otherwise reject with TypeError.
- Validate before checking abort/empty input. An already aborted signal rejects with exactly signal.reason and starts no work, even for an empty array.
- Valid empty input with a live/no signal resolves to []. Concurrency may exceed item count.

Failure/cancellation semantics:
- The first observed worker throw/rejection or signal abort wins; reject with that exact reason (including falsy worker rejection reasons).
- Immediately stop starting new workers once this first failure/abort is observed.
- A synchronous throw is observed immediately; do not start later indices afterward.
- Await/drain every worker already in flight before the returned promise rejects, so late rejections are handled. Aborting does not forcibly cancel workers; pass the supplied signal for cooperative cancellation.
- A later worker failure or later abort cannot replace the first reason. Remove any abort listener once the operation is fully settled.

Read the protected tests in test/task-pool.test.js. Only edit src/task-pool.js. Do not modify tests, TASK.txt, package.json, or other files; do not install packages, use network, read credentials, commit, or push. Approved commands: npm test, node --test.

Implement the utility, run npm test, and explain behavior and limitations briefly. Protected acceptance suite: 16 tests. Production stub deliberately fails until you implement it.
